<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<jsp:useBean class="com.wangsh.forward.system.pojo.ASysProperty" id="pojo"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>系统配置更新- 客户端单机系统</title>
		<%@ include file="/common/include/title.jsp"%>
	</head>
	<body>
		<%@ include file="/common/include/header.jsp"%>
		<div class="container">
			<div class="row">
				<div class="col-sm-10 col-sm-offset-1 main">
					<h2
						class="col-sm-10 col-sm-offset-1 form-signin-heading text-center"
						id="header_title">系统配置更新</h2>
					<form id="form" class="form-horizontal"
						action="${rootPath }/main.htm?method=sysPropertyUpdateSubmit"
						method="post">
						<input type="hidden" name="id" value="${one.id }">
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">名称:</label>
							${one.name }
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">值:</label>
							<div class="col-sm-7">
								<input type="text" name="value" id="path_911" class="form-control" value="${one.value }">
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">描述:</label>
							<div class="col-sm-7">
								<input type="text" name="content" id="path_911" class="form-control" value="${one.content }">
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">状态:</label>
						</div>
						<div class="form-group">
							<div class="col-sm-8 form-check form-check-inline">
								&nbsp;&nbsp;&nbsp;&nbsp;
								<c:forEach items="${pojo.enumsMap }" var="me" varStatus="stat">
									<c:if test="${fn:startsWith(me.key,'STATUS-')}">
										<!-- 拆分,按照-拆分,取最后一个 -->
										<c:set value="${fn:split(me.key, '-')}" var="keys"/>
										<div class="form-check form-check-inline">
											<label class="form-check-label" for="${me.key}">
												<input type="radio" name="status" id="${me.key}" value="${keys[1] }" 
												class="form-check-input" placeholder="状态" 
												${one.status == keys[1] ? 'checked' : '' }
												/>
											    ${me.value }
											</label>
										</div>
										&nbsp;&nbsp;
									</c:if>
								</c:forEach>
							</div>
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">创建时间:</label>
							${one.createTime }
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">更新时间:</label>
							${one.updateTime }
						</div>
						<div class="form-group">
							<label for="currDateStr" class="col-sm-2 control-label">发布时间:</label>
							${one.pubTime }
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-lg btn-primary" type="submit">提交</button>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
		<%@ include file="/common/include/footer.jsp"%>
	</body>
</html>